let my_audio = document.getElementById('my_audio')

let items = document.querySelectorAll('.item')
items.forEach((item, index) => {
    item.addEventListener('click', function() {
            let file_name = item.getAttribute('data-text')
            play(file_name)
        })
        // item.addEventListener('mou')
})



function play(file_name) {
    my_audio.src = `./sounds/${file_name}.mp3`
    my_audio.play()
}